package com.itheima.wemedia.service;

import com.itheima.common.vo.PageResultVo;
import com.itheima.common.vo.ResultVo;
import com.itheima.wemedia.pojo.WmMaterial;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.wemedia.dto.WmMaterialPageRequestDto;

/**
 * @description <p>自媒体图文素材信息 业务接口</p>
 *
 * @version 1.0
 * @package com.itheima.wemedia.service
 */
public interface WmMaterialService extends IService<WmMaterial> {


    /**
     * 素材列表查询
     * @param dto
     * @return
     */
    PageResultVo<WmMaterial> pageList(WmMaterialPageRequestDto dto);


    /**
     * 收藏修改
     * @param updateId
     * @return
     */
    ResultVo updateIsCollection(Integer updateId);

    /**
     * 删除素材
     * @param id
     * @return
     */
    ResultVo delPictureById(Integer id);
}
